import { Injectable, OnModuleInit } from "@nestjs/common";
import {PeerServer} from "peer";

@Injectable()
export class PeerService implements OnModuleInit{
  onModuleInit(): any {
    PeerServer(
      {
        port: 12000,
        path: '/'
      },
      (server) => {
        console.log('peer server start')
      }
    )
  }
}
